<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% String path = request.getContextPath(); %>
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<title>AdminX | Web Application</title>
<meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="<%=path%>/musik/js/jPlayer/jplayer.flat.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/animate.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/simple-line-icons.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/font.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/musik/css/app.css" type="text/css" />

<link href="<%=path%>/plug-in/sweetalert/css/sweetalert.css" rel="stylesheet" type="text/css" id="style_color"/>

<!--LOGO-->
<link rel="shortcut icon" href="<%=path%>/musik/images/favicon.ico" />
<!--[if lt IE 9]>
<script src="<%=path%>/musik/js/ie/html5shiv.js"></script>
<script src="<%=path%>/musik/js/ie/respond.min.js"></script>
<script src="<%=path%>/musik/js/ie/excanvas.js"></script>
<![endif]-->
</head>
<body class="bg-info dker">
	<section id="content" class="m-t-lg wrapper-md animated fadeInUp">
		<div class="container aside-xl">
			<a class="navbar-brand block" href="index.html"><span class="h1 font-bold">AdminX</span></a>
			<section class="m-b-lg">
				<header class="wrapper text-center">
					<strong>Sign in to get in touch</strong>
				</header>
				<form action="<%=path%>/j_spring_security_check" method="post">
					<div class="form-group">
						<input type="text" id="j_username" name="j_username" placeholder="请输入账号!" class="form-control rounded input-lg text-center no-border">
					</div>
					<div class="form-group">
						<input type="password" id="j_password" name="j_password" placeholder="请输入密码!" class="form-control rounded input-lg text-center no-border">
					</div>
					<button type="submit" class="btn btn-lg btn-warning lt b-white b-2x btn-block btn-rounded"><i class="icon-arrow-right pull-right"></i><span class="m-r-n-lg">登入</span></button>
					<div class="text-center m-t m-b"><a href="#"><small>忘记密码?</small></a></div>
					<div class="line line-dashed"></div>
					<p class="text-muted text-center"><small>没有账号?</small></p>
					<a href="signup.html" class="btn btn-lg btn-info btn-block rounded">创建账号</a>
				</form>
			</section>
		</div>
	</section>
	
	<!-- footer -->
	<footer id="footer">
		<div class="text-center padder">
			<p>
				<small>AdminX<br>&copy; 2017</small>
			</p>
		</div>
	</footer>
	<!-- / footer -->
	
<script src="<%=path%>/musik/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="<%=path%>/musik/js/bootstrap.js"></script>
<!-- App -->
<script src="<%=path%>/musik/js/app.js"></script>  
<script src="<%=path%>/musik/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="<%=path%>/musik/js/app.plugin.js"></script>
<script type="text/javascript" src="<%=path%>/musik/js/jPlayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="<%=path%>/musik/js/jPlayer/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="<%=path%>/musik/js/jPlayer/demo.js"></script>


<!-- 页面插件 -->
<script src="<%=path%>/adminx/js/xx.util.js" type="text/javascript"></script>
<script src="<%=path%>/plug-in/sweetalert/js/sweetalert-dev.js" type="text/javascript"></script>

</body>
<script>
	$(function(){
		
		//捕获操作信息
		var error = "${error}";
		
		if(error == 501){
			xx_alert("error", "账号或密码错误！");
		}else if(error == 502){
			xx_alert("error", "找不到用户!");
		}else if(error == 504){
			xx_alert("error", "未分配角色!");
		}else if(error == 505){
			xx_alert("error", "登录超时!");
		}else if(error == 506){
			xx_alert("error", "没有访问权限!");
		}
	});
</script>
</html>